{% extends "esquinica/index.html" %}


{% block events %}
<p><a href="/fb/createEvent/">Create</a> </p>
<table id="events">
  
  <!-- header -->
  <thead>
    
    <tr>
      <th scope="col">Event Name</th>
      <th scope="col">Date</th>
      <th scope="col">Place</th>
      <th scope="col">Author</th>  
    </tr>
  </thead>
  
  
  <tbody>
    {% if not list %} 
      <tr> <td colspan="4">No events found</td>
      </tr>
    {% endif %}
    
    {% for p in list %}
     <tr>
        <td> {{ p.name }} </td>
        <td> {{ p.event_date }} </td>
        <td> {{ p.place }} </td>
        <td> {{ p.author }} </td>
     </tr>
    {% endfor %}
  
  </tbody>
  
</table>
{% endblock %}
